package com.android.tetris.utils;

import android.content.Context;
import android.content.Intent;

import com.android.tetris.Authors;
import com.android.tetris.Game;
import com.android.tetris.HighScores;

public class Utils {
	public static long PlayingSecond = 0;
	public static int CurrentLevel = 1;
	// Thoi gian choi toi da la 2 tieng
	public static long PlayTimeFinished;

	public static Intent browseIntent(Context ctx, String path) {
		Intent result = new Intent();

		if (path.equals(Activities.GAME.toString())) {
			result.setClass(ctx, Game.class);
		} else if (path.equals(Activities.HIGHSCORES.toString())) {
			result.setClass(ctx, HighScores.class);
		} else if (path.equals(Activities.AUTHORS.toString())) {
			result.setClass(ctx, Authors.class);
		}

		return result;
	}
}
